<?php
include_once("mysqllib.php");

$idUser = $_GET['idUser'];
$blocked = intval($_GET['block']);

$db = new mysqllib();

if($blocked){
	$query="UPDATE User SET blocked='0' WHERE idUser='$idUser'";
	echo '0';
}else{
	$query="UPDATE User SET blocked='1' WHERE idUser='$idUser'";
	echo '1';
}

$result = mysql_query($query);

?>